package org.zfes.snowier.zbss.xzy.mo.dtos.device;

import java.util.List;
import java.util.Map;
import com.google.common.collect.Lists;
import org.zfes.snowier.zbss.xzy.mo.dtos.IBaseMDto;
import org.zfes.snowier.zbss.xzy.mo.dtos.sys.SysCpuDto;
import org.zfes.snowier.zbss.xzy.mo.dtos.sys.SysFileDto;
import org.zfes.snowier.zbss.xzy.mo.dtos.sys.SysInfoDto;
import org.zfes.snowier.zbss.xzy.mo.dtos.sys.SysMemDto;

public class MoDeviceDataDto  extends IBaseMDto  {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private DeviceMoDto device;
	private SysCpuDto cpu;
	private SysMemDto mem;
	private SysInfoDto sys;
	private List<SysFileDto> sysfiles=Lists.newArrayList(); 
	
	private List<Map<String,Object>> parts_st=Lists.newArrayList(); 

	
	
//	public void fillParent() {
//		DeviceDto device = this.getDevice();
//		if(device!=null) {
//			this.setDevicesn(device.getDevicesn()).setDevicemac(device.getDevicemac()).setDeviceip(device.getDeviceip()).setSt(device.getSt()).setTi(device.getTi());
//		}
//	}
	public DeviceMoDto getDevice() {
		return device;
	}

	public MoDeviceDataDto setDevice(DeviceMoDto device) {
		this.device = device;
		return this;
	}

	public SysCpuDto getCpu() {
		return cpu;
	}

	public MoDeviceDataDto setCpu(SysCpuDto cpu) {
		this.cpu = cpu;
		return this;
	}

	public SysMemDto getMem() {
		return mem;
	}

	public MoDeviceDataDto setMem(SysMemDto mem) {
		this.mem = mem;
		return this;
	}

	public SysInfoDto getSys() {
		return sys;
	}

	public MoDeviceDataDto setSys(SysInfoDto sys) {
		this.sys = sys;
		return this;
	}

	public List<SysFileDto> getSysfiles() {
		return sysfiles;
	}

	public MoDeviceDataDto setSysfiles(List<SysFileDto> sysfiles) {
		this.sysfiles = sysfiles;
		return this;
	}

	public List<Map<String,Object>> getParts_st() {
		return parts_st;
	}

	public MoDeviceDataDto setParts_st(List<Map<String,Object>> parts_st) {
		this.parts_st = parts_st;
		return this;
	}

	@Override
	public String toString() {
		return "MoDeviceDataDto [device=" + device + ", cpu=" + cpu + ", mem=" + mem + ", sys=" + sys + ", sysfiles="
				+ sysfiles + ", parts_st=" + parts_st + ", type=" + type + ", receivetime=" + receivetime + "]";
	}

	@Override
	public Byte getSt() {
		return device.getSt();
	}

	
	
	
	
	
	
	
	
}
